<template>
	<view>
		<uni-search-bar placeholder="查询养老院" @confirm="dho"></uni-search-bar>
		
		<uni-group title="养老服务">
			<view class="item-container">
				<view class="thumb-box" v-for="(item1, index1) in list"
					@click="dianji(item1.link)" :key="index1">
					<image class="item-menu-image" :src="item1.image" mode=""></image>
					<view class="item-menu-name">{{item1.text}}</view>
				</view>
			</view>
		</uni-group>
		<uni-group title="推荐养老机构">
			<uni-card @click="dinaji1" title="同辉养老" v-for="(item,index) in 5" thumbnail="../../../static/zhihui2/icons/4749c3782fc8b2b61a178faa12baf60.png">
				<view class="">
					同辉养老（集团）是一家有梦想、有强烈社会责任感的医养健康服务型企业，定位于一家
				</view>
			</uni-card>
		</uni-group>
		<image src=""></image>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
						text: '健康评估',
						image: '../../../static/zhihui2/icons/LuJing410.png.png',
						link:'jian'
					},
					{
						text: '平台监测',
						image: '../../../static/zhihui2/icons/LuJing413.png.png',
						link:'pingtai'
					},
					{
						text: '查询巡检记录',
						image: '../../../static/zhihui2/icons/LuJing414.png.png',
						link:'cahxun'
					},
					{
						text: '集中监测',
						image: '../../../static/zhihui2/icons/LuJing453.png.png',
						link:'jizhong'
					},
				]
			}
			
		},
		methods: {
			dho(){
				uni.navigateTo({
					url:'listcha'
				})
			},
			dianji(url){
				uni.navigateTo({
					url:url
				})
			},
			dinaji1(){
				uni.navigateTo({
					url:'xianq'
				})
			}
		}
	}
</script>

<style>
	.item-container {
			display: flex;
			flex-wrap: wrap;
		}
	
		.thumb-box {
			width: 25%;
			display: flex;
			align-items: center;
			justify-content: center;
			flex-direction: column;
			margin-top: 20rpx;
		}
	
		.item-menu-image {
			width: 80rpx;
			height: 80rpx;
		}
</style>
